package com.study.testSpringBoot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.study.testSpringBoot.service.IProviderService;

/**
 * 测试并发生产者消费
 */
@RestController
public class ProviderController {

	@Autowired
	private IProviderService providerService;
	
	@GetMapping("/setData")
	public String setData() {
		providerService.provideData();
		return "success";
	}
}
